import api from './index'

// 我的
export default {
	//获取订单
	leaseOrderList: (data) => api.get("/lease/order/list", data),
	//获取详情
	leaseOrderInfo: (id) => api.get(`/lease/order/${id}`),
	// 续租订单
	leaseRenewal: (data) => api.post(`/lease/Renewal`, data),
	// 续租订单
	leaseOverdue: (data) => api.post(`/lease/overdue`, data),
	//获取逾期订单
	getOverdue: (data) => api.get("/lease/overdue/list", data),
	//支付逾期订单
	payOverdue: (id) => api.get(`/lease/overdue/pay/${id}`),
	//支付续租订单
	payReleretOrder: (id) => api.get(`/lease/Renewal/pay/${id}`),
	//获取续租订单
	getRenewal: (data) => api.get(`/lease/Renewal/list`, data),
	//申请续租订单
	addRenewal: (data) => api.post(`/lease/Renewal`, data),
	//修改订单状态
	refund: (data) => api.put('/lease/order', data),
	//计算提前归还金额
	getBreakByMoney: data => api.get("/lease/order/amountCalculation", data),
	//获取回寄地址
	getIndex: data => api.get("/lease/system/8", data),
	getData: (id) => api.get(`/lease/system/${id}`),
	
	//免押
	getFreeDetain: (id) => api.get(`/lease/order/freeDetain/${id}`),
	
	systemInfoList: data => api.get("/lease/system/list", data),

}